package com.xxx.service.impl;

import com.xxx.entity.User;
import com.xxx.mapper.UserMapper;
import com.xxx.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public User selectId(int id) {
        return userMapper.selectId(id);
    }

    @Override
    public User selectUserName(String userName) {
        return userMapper.selectUserName(userName);
    }
}
